using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UserInfoExt : GeneratedMessageLite<UserInfoExt, UserInfoExt.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UserInfoExt, UserInfoExt.Builder>
		{
			private bool resultIsReadOnly;
			private UserInfoExt result;
			protected override UserInfoExt.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UserInfoExt MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UserInfoExt DefaultInstanceForType
			{
				get
				{
					return UserInfoExt.DefaultInstance;
				}
			}
			public SnsUserInfo SnsUserInfo
			{
				get
				{
					return this.result.SnsUserInfo;
				}
				set
				{
					this.SetSnsUserInfo(value);
				}
			}
			public string MyBrandList
			{
				get
				{
					return this.result.MyBrandList;
				}
				set
				{
					this.SetMyBrandList(value);
				}
			}
			public string MsgPushSound
			{
				get
				{
					return this.result.MsgPushSound;
				}
				set
				{
					this.SetMsgPushSound(value);
				}
			}
			public string VoipPushSound
			{
				get
				{
					return this.result.VoipPushSound;
				}
				set
				{
					this.SetVoipPushSound(value);
				}
			}
			public Builder()
			{
				this.result = UserInfoExt.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UserInfoExt cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UserInfoExt PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UserInfoExt other = this.result;
					this.result = new UserInfoExt();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UserInfoExt.Builder Clear()
			{
				this.result = UserInfoExt.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UserInfoExt.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UserInfoExt.Builder(this.result);
				}
				return new UserInfoExt.Builder().MergeFrom(this.result);
			}
			public override UserInfoExt BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UserInfoExt.Builder MergeFrom(IMessageLite other)
			{
				if (other is UserInfoExt)
				{
					return this.MergeFrom((UserInfoExt)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UserInfoExt.Builder MergeFrom(UserInfoExt other)
			{
				return this;
			}
			public override UserInfoExt.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UserInfoExt.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UserInfoExt._userInfoExtFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UserInfoExt._userInfoExtFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							SnsUserInfo.Builder builder = SnsUserInfo.CreateBuilder();
							if (this.result.hasSnsUserInfo)
							{
								builder.MergeFrom(this.SnsUserInfo);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.SnsUserInfo = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasMyBrandList = input.ReadString(ref this.result.myBrandList_);
							continue;
						}
						if (num3 == 26u)
						{
							this.result.hasMsgPushSound = input.ReadString(ref this.result.msgPushSound_);
							continue;
						}
						if (num3 == 34u)
						{
							this.result.hasVoipPushSound = input.ReadString(ref this.result.voipPushSound_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UserInfoExt.Builder SetSnsUserInfo(SnsUserInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSnsUserInfo = true;
				this.result.snsUserInfo_ = value;
				return this;
			}
			public UserInfoExt.Builder SetSnsUserInfo(SnsUserInfo.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasSnsUserInfo = true;
				this.result.snsUserInfo_ = builderForValue.Build();
				return this;
			}
			public UserInfoExt.Builder MergeSnsUserInfo(SnsUserInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasSnsUserInfo && this.result.snsUserInfo_ != SnsUserInfo.DefaultInstance)
				{
					this.result.snsUserInfo_ = SnsUserInfo.CreateBuilder(this.result.snsUserInfo_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.snsUserInfo_ = value;
				}
				this.result.hasSnsUserInfo = true;
				return this;
			}
			public UserInfoExt.Builder ClearSnsUserInfo()
			{
				this.PrepareBuilder();
				this.result.hasSnsUserInfo = false;
				this.result.snsUserInfo_ = null;
				return this;
			}
			public UserInfoExt.Builder SetMyBrandList(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMyBrandList = true;
				this.result.myBrandList_ = value;
				return this;
			}
			public UserInfoExt.Builder ClearMyBrandList()
			{
				this.PrepareBuilder();
				this.result.hasMyBrandList = false;
				this.result.myBrandList_ = "";
				return this;
			}
			public UserInfoExt.Builder SetMsgPushSound(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMsgPushSound = true;
				this.result.msgPushSound_ = value;
				return this;
			}
			public UserInfoExt.Builder ClearMsgPushSound()
			{
				this.PrepareBuilder();
				this.result.hasMsgPushSound = false;
				this.result.msgPushSound_ = "";
				return this;
			}
			public UserInfoExt.Builder SetVoipPushSound(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasVoipPushSound = true;
				this.result.voipPushSound_ = value;
				return this;
			}
			public UserInfoExt.Builder ClearVoipPushSound()
			{
				this.PrepareBuilder();
				this.result.hasVoipPushSound = false;
				this.result.voipPushSound_ = "";
				return this;
			}
		}
		public const int SnsUserInfoFieldNumber = 1;
		public const int MyBrandListFieldNumber = 2;
		public const int MsgPushSoundFieldNumber = 3;
		public const int VoipPushSoundFieldNumber = 4;
		private static readonly UserInfoExt defaultInstance;
		private static readonly string[] _userInfoExtFieldNames;
		private static readonly uint[] _userInfoExtFieldTags;
		private bool hasSnsUserInfo;
		private SnsUserInfo snsUserInfo_;
		private bool hasMyBrandList;
		private string myBrandList_ = "";
		private bool hasMsgPushSound;
		private string msgPushSound_ = "";
		private bool hasVoipPushSound;
		private string voipPushSound_ = "";
		private int memoizedSerializedSize = -1;
		public static UserInfoExt DefaultInstance
		{
			get
			{
				return UserInfoExt.defaultInstance;
			}
		}
		public override UserInfoExt DefaultInstanceForType
		{
			get
			{
				return UserInfoExt.DefaultInstance;
			}
		}
		protected override UserInfoExt ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SnsUserInfo SnsUserInfo
		{
			get
			{
				return this.snsUserInfo_ ?? SnsUserInfo.DefaultInstance;
			}
		}
		public string MyBrandList
		{
			get
			{
				return this.myBrandList_;
			}
		}
		public string MsgPushSound
		{
			get
			{
				return this.msgPushSound_;
			}
		}
		public string VoipPushSound
		{
			get
			{
				return this.voipPushSound_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasSnsUserInfo && this.SnsUserInfo.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasSnsUserInfo)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.SnsUserInfo);
				}
				if (this.hasMyBrandList)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.MyBrandList);
				}
				if (this.hasMsgPushSound)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.MsgPushSound);
				}
				if (this.hasVoipPushSound)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.VoipPushSound);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UserInfoExt()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] userInfoExtFieldNames = UserInfoExt._userInfoExtFieldNames;
			if (this.hasSnsUserInfo)
			{
				output.WriteMessage(1, userInfoExtFieldNames[2], this.SnsUserInfo);
			}
			if (this.hasMyBrandList)
			{
				output.WriteString(2, userInfoExtFieldNames[1], this.MyBrandList);
			}
			if (this.hasMsgPushSound)
			{
				output.WriteString(3, userInfoExtFieldNames[0], this.MsgPushSound);
			}
			if (this.hasVoipPushSound)
			{
				output.WriteString(4, userInfoExtFieldNames[3], this.VoipPushSound);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasSnsUserInfo)
			{
				num ^= this.snsUserInfo_.GetHashCode();
			}
			if (this.hasMyBrandList)
			{
				num ^= this.myBrandList_.GetHashCode();
			}
			if (this.hasMsgPushSound)
			{
				num ^= this.msgPushSound_.GetHashCode();
			}
			if (this.hasVoipPushSound)
			{
				num ^= this.voipPushSound_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			UserInfoExt userInfoExt = value as UserInfoExt;
			return userInfoExt != null && (this.hasSnsUserInfo == userInfoExt.hasSnsUserInfo && (!this.hasSnsUserInfo || this.snsUserInfo_.Equals(userInfoExt.snsUserInfo_))) && (this.hasMyBrandList == userInfoExt.hasMyBrandList && (!this.hasMyBrandList || this.myBrandList_.Equals(userInfoExt.myBrandList_))) && (this.hasMsgPushSound == userInfoExt.hasMsgPushSound && (!this.hasMsgPushSound || this.msgPushSound_.Equals(userInfoExt.msgPushSound_))) && (this.hasVoipPushSound == userInfoExt.hasVoipPushSound && (!this.hasVoipPushSound || this.voipPushSound_.Equals(userInfoExt.voipPushSound_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UserInfoExt, UserInfoExt.Builder>.PrintField("SnsUserInfo", this.hasSnsUserInfo, this.snsUserInfo_, writer);
			GeneratedMessageLite<UserInfoExt, UserInfoExt.Builder>.PrintField("MyBrandList", this.hasMyBrandList, this.myBrandList_, writer);
			GeneratedMessageLite<UserInfoExt, UserInfoExt.Builder>.PrintField("MsgPushSound", this.hasMsgPushSound, this.msgPushSound_, writer);
			GeneratedMessageLite<UserInfoExt, UserInfoExt.Builder>.PrintField("VoipPushSound", this.hasVoipPushSound, this.voipPushSound_, writer);
		}
		public static UserInfoExt ParseFrom(byte[] data)
		{
			return UserInfoExt.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UserInfoExt MakeReadOnly()
		{
			return this;
		}
		public static UserInfoExt.Builder CreateBuilder()
		{
			return new UserInfoExt.Builder();
		}
		public override UserInfoExt.Builder ToBuilder()
		{
			return UserInfoExt.CreateBuilder(this);
		}
		public override UserInfoExt.Builder CreateBuilderForType()
		{
			return new UserInfoExt.Builder();
		}
		public static UserInfoExt.Builder CreateBuilder(UserInfoExt prototype)
		{
			return new UserInfoExt.Builder(prototype);
		}
		static UserInfoExt()
		{
			UserInfoExt.defaultInstance = new UserInfoExt().MakeReadOnly();
			UserInfoExt._userInfoExtFieldNames = new string[]
			{
				"MsgPushSound",
				"MyBrandList",
				"SnsUserInfo",
				"VoipPushSound"
			};
			UserInfoExt._userInfoExtFieldTags = new uint[]
			{
				26u,
				18u,
				10u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.UserInfoExt.Descriptor, null);
		}
	}
}
